package com.cimu.mongodb.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * Title: User
 * Copyright: Copyright (c) 2017
 *
 * date 2018年12月15日 22:52
 */
@Data
public class User implements Serializable{
    private static final long serialVersionUID = -6951163449724836914L;
    @Id
    private Long id;
    private String name;
    @Field("passwordNew")//mongodb中以该字段作为字段名称
    private String password;
}
